export const isInstanceOf = (value: any, type: any) => typeof type !== 'undefined' && value instanceof type;